package com.appsspot.server.rpc;

import java.util.ArrayList;

import com.appsspot.client.Constants;
import com.appsspot.client.parcer.Tab;
import com.appsspot.client.rpc.GreetingService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class GreetingServiceImpl extends RemoteServiceServlet implements
		GreetingService {

	public ArrayList<Tab> greetServer(String input) {
		@SuppressWarnings("unchecked")
		ArrayList<Tab> config = (ArrayList<Tab>) getServletContext().getAttribute(
				Constants.k_ATTR_SERVLET_MAIN_MENU);
		return config;
	}
}
